package com.jxstyle.modular.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jxstyle.modular.entity.UserRole;
import com.jxstyle.modular.mapper.UserRoleMapper;

@Service
public class UserRoleService extends ServiceImpl<UserRoleMapper, UserRole>{

	public List<UserRole> listByUserid(int userid){
		QueryWrapper<UserRole> wrapper = new QueryWrapper<>();
		wrapper.eq("userid", userid);
		return super.list(wrapper);
	}
	
}
